package com.cola;

import org.junit.jupiter.api.DynamicTest;
import org.junit.jupiter.api.Test;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collection;

/**
 * @Grup:com.cola
 * @Auther:cola
 * @Data:2021/4/9-2021-04-12:24
 * @version:1.0
 */
public class EnumDemo {
    public static final int RED = 0x1;
    public static final int GREEN = 0x2;
    public static final int BLUE = 0x3;
    public int color;

    @Test
    public void test1() {
        color = RED;
        color = 4;
    }

    public Color colorEnum;

    @Test
    public void test2() {
        colorEnum = Color.RED;
        System.out.println(colorEnum);

        Color[] values = Color.values();
        System.out.println(Arrays.toString(values));
    }

}
